function ret = gprima(eta, x, func)
	if( func == 1 )
		ret = g_exp_prima( eta, x );
	else	
		ret = g_tanh_prima( eta, x );
	endif	
endfunction

